#ifndef __UTILS__
#define __UTILS__

#define DELETE_SAFELY(x) if((x)){delete (x); (x) = 0;}
#define DELETE_SAFELY_ARRAY(x) if((x)){delete[] (x); (x) = 0;}

void xcrypt(char* inputByte, unsigned long inputLength, char* encriptedByte, char* key);
char* getCurrentTimeString();
char* getCurrentTimeStringForFileName();

#include "cocos2d.h"
using namespace cocos2d;

class Utils {
    
public:
    static CCString* getTimeString(int timeInt);
};

#endif // !__UTILS__
